package src.Fifteen;

public class InterruptedTest implements Runnable{

    private boolean isContinue = false;

    @Override
    public void run() {
        while (true){
            System.out.println("11111");
            if(isContinue){
                break;
            }
        }
    }

    public boolean isContinue() {
        return isContinue;
    }

    public void setContinue(boolean aContinue) {
        isContinue = aContinue;
    }


}
